home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODF-Interest Archive / December 96 / Embedded frame size request.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-04  |  1.0 KB  |  [TEXT/ttxt]

  1. Subject:     Embedded frame size request
  2. Sent:        12/4/96 11:15 AM
  3. Received:    12/4/96 11:41 AM
  4. From:        Jeffrey S. Shulman, kilroy@netcom.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. When my part is embedded in another part I want to specify a desired
  9. size for my frame (I realize I may not get it). This looked easy, just
  10. call RequestFrameShape. Well, I called RequestFrameShape from my
  11. frame's PostCreateViewFromStream method and I get the proper frame
  12. size BUT the contents are still 80x80 (a scrolling view).  I tried
  13. calling SetSize on the content view but that didn't work either.
  14.  
  15. One culprit looks like ODF's FW_CSuperView::CreateSubViewsFromStream method
  16. because it *resets* the extent back to what it was before it called my
  17. PostCreateViewFromStream method. So clearly my PostCreateViewFromStream method
  18. isn't the proper place to call RequestFrameShape. The documentation nor the
  19. examples show how this should be done.
  20.  
  21. Help! Thanks!
  22.  
  23. Jeff
  24.